/*
 * Copyright (c) United Binary LLC.  All rights reserved.
 * 
 * This code is licensed under the MIT License
 * 
 * SEE: http://harnessit.codeplex.com/license
 * 
 */
using System;

namespace UnitedBinary.HarnessIt.TestEngine.PortableTestItems
{
	/// <summary>
	/// Summary description for PortableTestObject.
	/// </summary>
	[Serializable]
	public class PortableTestObject
	{
		public enum TestObjectType 
		{
			None,
			Result, 
			Comment, 
			Trace
		};

		private TestObjectType type = TestObjectType.None;
		private string description = "";
		private string comment = "";
		private bool success = false;

		public PortableTestObject()
		{
		}

		public TestObjectType Type
		{
			get
			{
				return type;
			}
			set
			{
				type = value;
			}
		}

		public string Description
		{
			get
			{
				return description;
			}
			set
			{
				description = value;
				if (value == null)
				{
					description = "";
				}
			}
		}

		public string Comment
		{
			get
			{
				return comment;
			}
			set
			{
				comment = value;
				if (value == null)
				{
					comment = "";
				}
			}
		}

		public bool Success
		{
			get
			{
				return success;
			}
			set
			{
				success = value;
			}
		}
	}
}
